import SvgIcon from './SvgIcon/index.vue'
import Category from './Category/index.vue'

// element-plus所有图标进行全局注册
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const allGloablComponent ={ SvgIcon,Category }
export default {
    //@ts-ignore
    install(app){
        Object.keys(allGloablComponent).forEach(key=>{
            //@ts-ignore
            app.component(key,allGloablComponent[key])
        })
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    }
}
